package cn.zspt.vank.service.impl;


import cn.zspt.vank.domain.User;
import cn.zspt.vank.domain.dto.LoginUser;
import cn.zspt.vank.mapper.UserMapper;
import cn.zspt.vank.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(LoginUser user) {
        return  userMapper.login(user);
    }


}
